<script lang="ts" setup>
const route = useRoute()
const router = useRouter()
router.replace({ path: '/' + route?.params?.path, query: route.query })
</script>
